﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MaterialInLibrary.aspx.cs"
    Inherits="HQWeb.LibarySys.MaterialInLibrary" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
      <link href="../Styles/Site.css" rel="Stylesheet" type="text/css" />
      <script type="text/javascript">
          function openScrap(vObjID, vObjNum) {
              var vURL = 'ReturnScrap.aspx?libraryOutMaterial_id=' + vObjID + '&Return_num=' + vObjNum;
              //window.open(vURL, "", "top=150px,left=200px,height=600px,width=800px");
              var str = window.showModalDialog(vURL, " ", "dialogWidth=800px;dialogHeight=400px");
              if (str.id != undefined && str.id != null && str.id != "") {
                  document.getElementById("hidScrapID").value = str.id;
                  document.getElementById("btn_scrap").click();
              }
          }
    </script>
</head>
<body>
    <form id="form1" runat="server">
   <div>
        <table width="98%">
            <tr>
                <td colspan="4" class="title">
                    <asp:Label runat="server" ID="labTitle" Text="归还表单"></asp:Label>
                </td>
            </tr>
            <tr>
                <td align="right" style="width: 20%">
                标 题 ：
                </td> 
                <td colspan="3"><asp:Label ID="Titel" runat="server"></asp:Label></td>
            </tr>
            <tr>
                <td align="right" style="width: 20%">
                    店 名 ：
                </td>
                <td>
                    <asp:Label ID="BranchName" runat="server">
                    </asp:Label>
                </td>
                <td align="right" style="width: 20%">
                    仓库名 ：
                </td>
                <td>
                    <asp:Label ID="LibrayName" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
             <td style="width: 20%" align="right">
                    申请人:
                </td>
                <td>
                <asp:Label runat="server" ID="Applicants"></asp:Label>
                </td>
                <td align="right" style="width: 20%">
                    审批人：
                </td>
                <td style="width: 30%">
                    <asp:Label runat="server" ID="Approver" ></asp:Label>
                </td>
            </tr>
            <tr>
                <td align="right" style="width: 20%">
                    出库时间 ：
                </td>
                <td>
                <asp:Label runat="server" ID="begintime"></asp:Label>
                </td>
                <td style="width: 20%" align="right">
                    归还时间:
                </td>
                <td>
                    <asp:Label runat="server" ID="endtime"></asp:Label>
                </td>
            </tr>
            <tr>
                <td align="center" colspan="4">
                  <%--  <div id="Addtable" runat="server"></div>--%>
                  <table width="80%">
                    <tr align="center">
                        <td align="right" style="width: 10%">材料名称：</td>
                        <td align="left" style="width: 10%">
                          <asp:TextBox ID="Material_Name" runat="server" ReadOnly="true"></asp:TextBox>
                        </td>
                        <td align="right" style="width: 10%">借出数量：</td>
                        <td align="left" style="width: 10%">
                            <asp:TextBox ID="Materail_Num" runat="server" ReadOnly="true"></asp:TextBox>
                        </td>
                        <td align="right" style="width: 10%">归还数量：</td>
                        <td align="left" style="width: 10%">
                            <asp:TextBox ID="Return_Num" runat="server"></asp:TextBox><%--<span style="color: Red; vertical-align:middle">*</span>--%>
                        </td>
                        <td align="left"  style="width: 20%"><asp:RequiredFieldValidator runat="server" ID="rev_Num" 
                                ControlToValidate="Return_Num" ForeColor="Red" ErrorMessage="请您输入数量" 
                                Display="Dynamic"></asp:RequiredFieldValidator>  <asp:RegularExpressionValidator ID="rev_price" runat="server" ControlToValidate="Return_Num" ForeColor="Red" ValidationExpression="^(\d)+(\.\d+)?$" ErrorMessage="请您输入正确的数量"></asp:RegularExpressionValidator></td>
                    </tr>
                  </table>
                </td>
            </tr>
            <tr>
                <td align="right" style="width: 20%">
                    申请备注：
                </td>
                <td colspan="3">
                   <%-- <asp:Label runat="server" Width="70%"  ID="txtRemark"></asp:Label>--%>
                    <asp:TextBox runat="server" ReadOnly="true"  Width="70%" TextMode="MultiLine" ID="Remark"></asp:TextBox>  
                </td>
            </tr>
             <tr>
                <td align="right" style="width: 20%">
                    申请批注：
                </td>
                <td colspan="3">
                <asp:TextBox runat="server" ReadOnly="true"  Width="70%" TextMode="MultiLine" ID="MyNotation"></asp:TextBox>  
                </td>
            </tr>
            <tr>
                <td align="right" style="width: 20%">
                    入库备注：
                </td>
                <td colspan="3">
                <asp:TextBox runat="server"  Width="70%" TextMode="MultiLine" ID="Material_Remark"></asp:TextBox>  
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
                <td colspan="3">
                    &nbsp;&nbsp;&nbsp; &nbsp;<%--<asp:Button ID="btnSubmit" runat="server" Text="申 请" CommandName="add"
                        OnClick="btnSubmit_Click" OnClientClick="return funCheckMessage()" />--%>&nbsp; &nbsp;
                        <asp:Button ID="btnPass" runat="server" Text="入 库" OnClick="btnPass_Click" />&nbsp; &nbsp;
                      <%--  <asp:Button ID="btnReject" runat="server" Text="驳 回" OnClick="btnReject_Click" Visible="false" />&nbsp; &nbsp;--%>
                    <asp:Button ID="btnReturnA" runat="server" Text="返 回" 
                        OnClick="btnReturnA_Click" CausesValidation="False" />
                   <%-- <asp:Button ID="btnReturnE" runat="server" Text="返 回" Visible="false" OnClick="btnReturnE_Click" />
                    <asp:Button ID="btnReturnO" runat="server" Text="返 回" Visible="false" OnClick="btnReturnO_Click" />--%>
                </td>
            </tr>      
        </table>
    </div>
    <div style="display: none">
    <asp:Button ID="btn_scrap" runat="server" OnClick="btn_scrap_click" />
        <asp:HiddenField ID="hidPid" runat="server" />
        <asp:HiddenField ID="hidLOMID" runat="server" />
        <asp:HiddenField ID="hidMaterialID" runat="server"/>
        <asp:HiddenField ID="hidLibraryID" runat="server"/>
        <asp:HiddenField ID="hidScrapID" runat="server" />
    </div>
    </form>
</body>
</html>
